/**
 * 
 */
package ro.dta.idbi.ui.patterns;

import com.mxgraph.model.mxCell;

import ro.dta.idbi.ui.sql.SqlGraph;

/**
 * Editable graph
 * 
 * @author Tudor Dobrila
 * 
 */
public class EditableGraph extends SqlGraph {

	public EditableGraph() {
		super();
	}

	@Override
	public boolean isCellEditable(final Object paramObject) {
		final mxCell cell = (mxCell) paramObject;
		boolean result = false;

		if (cell.getStyle().equals("SEL_TABLE") || cell.getStyle().equals("SEL_COL")
				|| cell.getStyle().equals("SEL_FK")) {
			result = true;
		}

		return result;
	}

}
